package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.party.BuildingClassEO;
import com.mjh.zhujianju.vo.agency.DepartmentVO;
import com.mjh.zhujianju.vo.party.BuildingClassVO;

import java.util.List;
import java.util.Map;

/**
 * @author liuyang
 * @Description: 课程
 * @date 2018/8/15 21:05
 */
public interface BuildingClassService  extends BaseService<BuildingClassEO> {

    /**
     * 首页查询展示
     * @return
     */
    List<BuildingClassVO> queryBuildingClassForIndex();

    /**
     * 课程列表
     * @param type
     * @return
     */
    List<BuildingClassVO> queryBuildingClassList(String type);


    /**
     * 课程详情
     * @param id
     * @return
     */
    BuildingClassVO queryBuildingClassInfo(Long id,Long userId);

    /**
     * 保存
     * @param buildingClassVO
     * @throws XTBusinessException
     */
    void saveInfo(BuildingClassVO buildingClassVO) throws XTBusinessException;

    PagedResult<BuildingClassVO> findBuildingClassPagination(BuildingClassEO buildingNewsEO);

    /**
     * 查找详情
     * @param id
     * @throws XTBusinessException
     */
    BuildingClassVO getInfo(Long id) throws XTBusinessException;

    /**
     *学习计划列表
     * @param userId
     * @return
     */
    Map<String,List<BuildingClassVO>> queryPlayList(Long userId);

    /**
     * 学习计划详情
     * @param userId
     * @return
     */
    BuildingClassVO queryBuildingClassInfoPlay(Long userId,Long id);

}
